package linkedList;

public class doubleLinkedTest {

    public static void main(String[] args) {
        DoubleLinkedList doubleLinkedList = new DoubleLinkedList();
        doubleLinkedList.addFirst(1);
        doubleLinkedList.addFirst(1);
        doubleLinkedList.addFirst(2);
        doubleLinkedList.addFirst(2);
        doubleLinkedList.addFirst(3);
        doubleLinkedList.addFirst(4);
        doubleLinkedList.addFirst(4);
        System.out.println(doubleLinkedList);
//        doubleLinkedList.addLast(2);
//        doubleLinkedList.addLast(3);
//        System.out.println(doubleLinkedList);
//        doubleLinkedList.add(3,100);
//        doubleLinkedList.add(0,100);
//        System.out.println(doubleLinkedList);
//        System.out.println(doubleLinkedList.get(3));
//        System.out.println(doubleLinkedList.set(2,10));
//       System.out.println(doubleLinkedList);
//          doubleLinkedList.removeIndex(100);
//        System.out.println(doubleLinkedList);
        doubleLinkedList.removeAllVal(1);
        System.out.println(doubleLinkedList);
    }
}